﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PingPongGame
{
    public class FloorBlock:Block
    {
    
        public new const string CollisionGroupString = "floorBlock";

        public FloorBlock(Position topLeft)
            : base(topLeft)
        {
            this.body=new char[,] { { '=' } };
        }

       

        public override bool CanCollideWith(string otherCollisionGroupString)
        {
            return otherCollisionGroupString == "ball" || otherCollisionGroupString == "userRacket";
        }

        public override void RespondToCollision(CollisionData collisionData)
        {
            this.IsDestroyed = false;
        }

        public override string GetCollisionGroupString()
        {
            return FloorBlock.CollisionGroupString;
        }
    }
}


    